﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using V2TEK.NET.SH.Silverlight.Charts.Core.Schedule;

namespace V2TEK.NET.SH.Silverlight.Charts.TreeGridHelper
{
    public class IconRepresenter
    {
        public FrameworkElement ExpandedIcon { get; set; }
        public FrameworkElement CollapseIcon { get; set; }
    }

    public class TaskIconDataContext
    {
        public IconRepresenter ControlAccountPlan { get; set; }
        public IconRepresenter ControlAccount { get; set; }
        public IconRepresenter PlanningPackage { get; set; }
        public IconRepresenter WorkPackage { get; set; }
        public IconRepresenter Milestone { get; set; }
        public IconRepresenter SummaryTask { get; set; }
        public IconRepresenter Task { get; set; }

        public IconRepresenter GetIconByTaskType(TaskType taskType)
        {
            switch (taskType)
            {
                case TaskType.ControlAccount:
                    return ControlAccount;
                case TaskType.ControlAccountPlan:
                    return ControlAccountPlan;
                case TaskType.Milestone:
                    return Milestone;
                case TaskType.PlanningPackage:
                    return PlanningPackage;
                case TaskType.SummaryTask:
                    return SummaryTask;
                case TaskType.WorkPackage:
                    return WorkPackage;
                case TaskType.Task:
                    return Task;
                default:
                    return SummaryTask;
            }
        }
    }
}
